package top.goldenyear.porpoise.framework.orm.core.model;

import com.easy.query.core.annotation.LogicDelete;
import com.easy.query.core.annotation.UpdateIgnore;
import com.easy.query.core.basic.extension.logicdel.LogicDeleteStrategyEnum;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author airhead
 */
@Data
@Accessors(chain = false)
public class BaseDo implements IModel {
  /** 创建者 */
  private String creator;

  /** 创建时间 */
  @UpdateIgnore private LocalDateTime createTime;

  /** 更新者 */
  @UpdateIgnore private String updater;

  /** 更新时间 */
  private LocalDateTime updateTime;

  /** 是否删除 */
  @LogicDelete(strategy = LogicDeleteStrategyEnum.BOOLEAN)
  private Boolean deleted;
}
